<script src="https://rawgithub.com/timrwood/moment/2.1.0/moment.js"></script>

<script>
	var d = new Date();
	d.getHours(); 
	d.getMinutes();
	d.getSeconds();

</script>

<script>
$(document).ready(function(){
	var eventTime = '46020'; 
	var currentTime = '66020'; 

	//var eventTime = new Date();
	var today=new Date();
	var h=today.getHours();
	var m=today.getMinutes();
	var s=today.getSeconds();
	today.setTime(46020);

	var Offset = new Date(today.getTimezoneOffset()*60000 / 2);
	

	var Diff = eventTime - currentTime + (Offset.getTime());
	var duration = moment.duration(Diff, 'milliseconds');
	var interval = 1000;

	setInterval(function(){
  	duration = moment.duration(duration.asMilliseconds() + interval, 'milliseconds');
  	$('.countdown').text(moment(duration.asMilliseconds()).format('H[h]:mm[m]:ss[s]'));
	}, interval);
	});
</script>

<div class="countdown"></div>
<br>

<?php echo $get_entry_time['entry_time']; ?>
<br>




			<?php
				
			$time=$get_entry_time['entry_time'];	
			$dbtime_explode = explode(':',$time);
		 			$dbtot_hr 		= $dbtime_explode[0]*60*60;
					$dbtot_min		= $dbtime_explode[1]*60;				
					$dbtime_tot 	= $dbtot_hr + $dbtot_min;
			echo '<input type="hidden" name="entry_time" value="$dbtime_tot">';			
			?>
			
			
